package com.example.studyplanning.servicesImpl;

import com.example.studyplanning.entity.Clock;
import com.example.studyplanning.mapper.ClockMapper;
import com.example.studyplanning.services.ClockServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClockServicesImpl implements ClockServices {
    @Autowired
    private ClockMapper clockMapper;

    @Override
    public Integer InsertClock(Integer userID) {
        return clockMapper.InsertClock(userID);
    }

    @Override
    public List<Clock> FindClock(Integer userID) {
        return clockMapper.FindClock(userID);
    }

    @Override
    public List<Clock> FindByDate(Integer userID, String date_time) {
        return clockMapper.FindByDate(userID, date_time);
    }
}
